/**
 * Copyright (C) 2020 Baidu, Inc. All Rights Reserved.
 */
package com.baidu.mpks.dal.domain;

import com.fasterxml.jackson.annotation.JsonFormat;
import com.fasterxml.jackson.annotation.JsonProperty;
import lombok.Data;

import java.util.Date;
import java.util.List;
import java.util.Map;
import java.util.Set;

/**
 * @author cuixuefei
 *
 */
@Data
public class SchemaAll extends Schema {
    private Integer id;
    
    @JsonProperty("@id")
    private String atId;
    
    @JsonProperty("@type")
    private String atType;

    private String schemaId;

    private Integer pid;
    
    // 父类
    private String subClass;
    
    // 子类
    private String supClass;
    
    // v1.1父类
    private Set<String> subClassOf;
    
    // v1.1子类
    private Set<String> supClassOf;
    
    private Set<String> properties;
    
    private Integer type;
    
    private Integer edit;
    
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8")
    private Date update_time;
    
    private String updateBy;

    private Map<String, String> comment;
    private Map<String, String> label;
    private List<String> domain;
    private List<String> range;
    private List<String> alias;
    private Map<String, String> constraint;
    private String rule;
    private String extend;
    private Integer index;
    private Integer weight;
    private String analysis;
    private Integer indexEdit;
    @JsonProperty("enum")
    private List<String> enumValues;

    private String[] altLabel;

    private String unitType;

    private String dataType;

    private Map<String, Object> structValue;
}
